package com.api.shopapi.service;

import com.api.shopapi.entity.ActivityItem;
import com.api.shopapi.entity.AskAnswerGroup;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AskAnswerGroupService {


    int insert(AskAnswerGroup askAnswerGroup);


    int delete(String askAnswerGroupCode);


    int update(AskAnswerGroup askAnswerGroup);


    AskAnswerGroup getByAskAnswerGroupCode(String askAnswerGroupCode);

    List<AskAnswerGroup> listByAskAnswerNameCode(String askAnswerNameCode);

    PageInfo<AskAnswerGroup> pageByCommandCenterCodeAskAnswerNameCode(int pageIndex, int pageSize,
                                                                String commandCenterCode,
                                                                String askAnswerNameCode);


    PageInfo<AskAnswerGroup> pageByGovCodeTypeAskAnswerNameCode(int pageIndex, int pageSize,
                                                                 String govCode,String type,
                                                            String askAnswerNameCode);

}
